//
//  ResultTestViewController.m
//  AndCampus
//
//  Created by 史宵宵 on 2018/4/2.
//  Copyright © 2018年 史宵宵. All rights reserved.
//

#import "ResultTestViewController.h"

@interface ResultTestViewController ()

@end

@implementation ResultTestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
    self.title = @"测试结果";
    if ([self.resultTypeStr isEqualToString:@"Description"]) {
        self.navigationItem.rightBarButtonItem = [UIBarButtonItem rightBarButtonItemWithTitle:@"职业索引" target:self selector:@selector(enterDescription)];
    }
    UIImage *image = [UIImage imageNamed:@"Testlist_bg"];
    self.view.layer.contents = (id) image.CGImage;
//    self.scrollView.contentSize =  CGSizeMake(0, kScreenW);
    self.titleLabel.text = self.titleStr;
    self.contentLabel.text = self.content;
}
#pragma mark - 职业索引
- (void)enterDescription{
    WebViewController *webView = [[WebViewController alloc]initWithTitle:@"职业索引" withRequest:[NSString stringWithFormat:@"%@/interaction/renderRiasec",URL_BASE]];
    [self.navigationController pushViewController:webView animated:YES];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
